package com.hk.dto;

import java.io.Serializable;
import java.sql.Timestamp;
/*
 * CREATE TABLE GSANSWER(
SEQ NUMBER PRIMARY KEY,
REF NUMBER NOT NULL,
STEP NUMBER NOT NULL,
DEPTH NUMBER NOT NULL,
PARENT NUMBER NOT NULL,
ID VARCHAR(20) NOT NULL,
TITLE VARCHAR(200) NOT NULL,
CONTENT VARCHAR(2000) NOT NULL,
REGI DATE NOT NULL
);
 */
public class GsBoardDto implements Serializable{
	
	private static final long serialVersionUID = -5679021452905779563L;
	
	private int seq;
	private int ref;
	private int step;
	private int depth;
	private int parent;
	private String id;
	private String title;
	private String content;
	private java.sql.Timestamp regi;
	
	public GsBoardDto() {}
	public GsBoardDto(int seq, int ref, int step, int depth, int parent,
			String id, String title, String content) {		
		this.seq = seq;
		this.ref = ref;
		this.step = step;
		this.depth = depth;
		this.parent = parent;
		this.id = id;
		this.title = title;
		this.content = content;		
	}
	public GsBoardDto(int seq, int ref, int step, int depth, int parent,
			String id, String title, String content, Timestamp regi) {		
		this.seq = seq;
		this.ref = ref;
		this.step = step;
		this.depth = depth;
		this.parent = parent;
		this.id = id;
		this.title = title;
		this.content = content;
		this.regi = regi;
	}
		
	public int getSeq() {
		return seq;
	}
	public void setSeq(int seq) {
		this.seq = seq;
	}
	public int getRef() {
		return ref;
	}
	public void setRef(int ref) {
		this.ref = ref;
	}
	public int getStep() {
		return step;
	}
	public void setStep(int step) {
		this.step = step;
	}
	public int getDepth() {
		return depth;
	}
	public void setDepth(int depth) {
		this.depth = depth;
	}
	public int getParent() {
		return parent;
	}
	public void setParent(int parent) {
		this.parent = parent;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getRegi() {
		return regi;
	}
	public void setRegi(Timestamp regi) {
		this.regi = regi;
	}	
	
	@Override
	public String toString() {
		return "GsBoardDto [content=" + content + ", depth=" + depth + ", id="
				+ id + ", parent=" + parent + ", ref=" + ref + ", regi=" + regi
				+ ", seq=" + seq + ", step=" + step + ", title=" + title + "]";
	}	
}
